import Vue from 'vue'
import App from './App.vue'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import interopFallback from './interop-fallback'

// 关闭 vue 提示
Vue.config.productionTip = false

import httpRequest from '@/utils/httpRequest' // api: https://github.com/axios/axios

// 挂载全局
Vue.prototype.$http = httpRequest // ajax请求方法
// Vue.prototype.$http = axios

const interop = window.interop || interopFallback
Vue.prototype.$interop = interop
Vue.prototype.$log = interop.log
Vue.$log = interop.log

Vue.$log.info('==========> Vue app start')

Vue.use(ElementUI);
new Vue({
  render: h => h(App),
}).$mount('#app')
